package com.fili;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Mar 2, 2007
 * Time: 12:59:35 PM
 * Revision: 0
 */
public class ZumaEngine extends Thread
{
    private ZumaPanel zumaPanel;


    public ZumaEngine(ZumaPanel zumaPanel)
    {
        this.zumaPanel = zumaPanel;
    }

    public void run()
    {
        while (true)
        {
            zumaPanel.updateStuff();
            zumaPanel.repaint();

            try
            {
                Thread.sleep(50);
            }
            catch (InterruptedException e)
            {
                e.printStackTrace();
            }
        }
    }
}
